#include <stdio.h>

struct S
{
    int data[1000];
    int num;
};

struct S s = {{1,2,3,4}, 1000};

void print1(struct S s)
{
    printf("value:%d   |    size:%d    |    address:%p\n", s.num,sizeof(s),&s);
}

void print2(struct S* ps)
{
    printf("value:%d   |    size:%d     |    address:%p\n", ps->num,sizeof(ps),&ps);
}
int test_struct_exam2()
{
    print1(s);
    print2(&s);
    return 0;
}

